/*
 * @Author: wwssaabb
 * @Date: 2021-08-06 09:43:18
 * @LastEditTime: 2021-08-13 08:34:25
 * @FilePath: \react-admin-server\model\role.js
 */
/* 
  角色模块
*/

const mongoose=require('mongoose')

const Role=mongoose.model('roles',new mongoose.Schema({
  name:{
    type:String,
    required:true,
    unique:true
  },
  create_time:{
    type:Date,
    default:Date.now
  },
  auth_time:Date,
  auth_name:String,
  menus:{
    type:Array,
    default:[]
  }
}))

module.exports={Role}